package com.qf.springcloud.consumer.feign;

import com.qf.springcloud.consumer.pojo.LocalOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("CUSTOMER-RIBBON-FEIGN")
@RequestMapping("/orders")
public interface OrderFeign {

    @GetMapping("/info/{id}")
    LocalOrder getById(@PathVariable Integer id);

    @GetMapping("/info")
    LocalOrder suibian(@RequestParam("id") Integer id, @RequestParam("addr")  String addr);

    @GetMapping("/info1")
    LocalOrder suibian2(@RequestBody LocalOrder order);

}
